import request from "@/utils/request";

// 型号列表
export function deviceTypeList(data) {
  return request({
    url: "/chronicdisease/plat/deviceTypeList",
    method: "post",
    data: data,
  });
}
// 型号新增修改
export function saveDeviceType(data) {
  return request({
    url: "/chronicdisease/plat/saveDeviceType",
    method: "post",
    data: data,
  });
}
// 型号删除
export function delDeviceType(data) {
  return request({
    url: "/chronicdisease/plat/delDeviceType",
    method: "post",
    data: data,
  });
}

// 设备列表
export function deviceList(data) {
  return request({
    url: "/chronicdisease/plat/deviceList",
    method: "post",
    data: data,
  });
}

// 新增/修改设备
export function saveDevice(data) {
  return request({
    url: "/chronicdisease/plat/saveDevice",
    method: "post",
    data: data,
  });
}
// 删除设备
export function delDevice(data) {
  return request({
    url: "/chronicdisease/plat/delDevice",
    method: "post",
    data: data,
  });
}
